package com.example.spark.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.spark.entity.User;
import com.example.spark.entity.result.CommonResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface EnterService extends IService<User> {
    //登录核对
    CommonResult checkLogin(String username, String password);

    //注册
    CommonResult registerUser(User user);

    //逻辑删除
    CommonResult updateUserFlag(Long id);

    //图片处理
    CommonResult addPhoto(MultipartFile photoFile, Long id) throws IOException;


}
